lay('#version').html('-v' + laydate.v);
laydate.render({
    elem: '.auditTime', //指定元素
    format: 'yyyy-MM-dd',
    type: 'datetime'
});

laydate.render({
    elem: '.postpone', //指定元素
    format: 'yyyy-MM-dd',
    type: 'datetime'
});


var prefix = ctx + "system/mTelRcd/simulacrum";

function submitHandler() {
    if ($.validate.form()) {
        let data = $('#form-user-add').serializeArray();
        parent.work(data);
        $.operate.save(prefix + '/simulacrum', data);
    }
}
(function () {
//计算剩余字数
    var disposeRemark = $('.disposeRemark');
    var disposeRemarkI = $('.disposeRemarkI');
    var disposeRemarkm = disposeRemarkI.text();
    if(!disposeRemark.val()) return;
    var disposeRemarkh = disposeRemark.val().length;

    disposeRemark.attr('maxlength', disposeRemarkm);
    disposeRemarkI.text(disposeRemarkm - disposeRemarkh);
    disposeRemark.on('input propertychange', function () {
        disposeRemarkI.text(disposeRemarkm - $(this).val().length);
    });
})()